{include file="header.htm" /}
<body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page min-hg-c-20">
    {include file="bar.htm" /}
    <div class="flexigrid">
        <div class="mDiv">
            <div class="ftitle">
                <div class="fbutton">
                    <a href="{:weapp_url('Verify/Verify/verify_staff_add')}">
                        <div class="add">
                            <span><i class="layui-icon layui-icon-addition"></i>添加核销员</span>
                        </div>
                    </a>
                </div>
            </div>
            <form class="navbar-form form-inline" action="{:weapp_url('Verify/Verify/verify_staff')}" method="get" onsubmit="layer_loading('正在处理');">
                {$searchform.hidden|default=''}
                <div class="sDiv">
                    关键字搜索：
                    <div class="sDiv2">
                        <input type="text" size="30" name="keywords" class="qsbox" value="{$Request.param.keywords}" placeholder="会员名称/核销员名称搜索..." style="width: 150px;">
                        <input type="submit" class="btn" value="搜索">
                        <i class="fa fa-search"></i>
                    </div>
                </div>
            </form>
        </div>

        <div class="hDiv">
            <div class="hDivBox">
                <table cellspacing="0" cellpadding="0" style="width: 100%">
                    <thead>
                        <tr>
                            <th abbr="article_time" axis="col6" class="sign w40"> <div class="tc"><input type="checkbox" class="checkAll"></div> </th>
                            <th abbr="article_time" axis="col6" class="w50"> <div class="tc">ID</div> </th>
                            <th abbr="article_time" axis="col6" class=""> <div class="text-l10">会员名称</div> </th>
                            <th abbr="article_time" axis="col6" class="w150"> <div class="tc">核销员名称</div> </th>
                            <th abbr="article_time" axis="col6" class="w150"> <div class="tc">核销员手机</div> </th>
                            <th abbr="article_time" axis="col6" class="w100"> <div class="tc">核销员状态</div> </th>
                            <th abbr="article_time" axis="col6" class="w200"> <div class="tc">所属门店</div> </th>
                            <th abbr="article_time" axis="col6" class="w150"> <div class="tc">添加时间</div> </th>
                            <th abbr="article_time" axis="col6" class="w100"> <div class="tc">操作</div> </th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>

        <div class="bDiv" style="height: auto;">
            <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
                <table style="width: 100%">
                    <tbody>
                    {empty name="staff"}
                        <tr>
                            <td class="no-data" align="center" axis="col0" colspan="50">
                                <div class="no_row">
                                    <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
                                </div>
                            </td>
                        </tr>
                    {else/}
                        {volist name="staff" id="vo"}
                        <tr>
                            <td class="sign">
                                <div class="w40 tc">
                                    <input type="checkbox" autocomplete="off" name="ids[]" value="{$vo.staff_id}">
                                </div>
                            </td>
                            <td class="sort">
                                <div class="w50 tc"> {$vo.staff_id} </div>
                            </td>
                            <td style="width: 100%;">
                                <div class="text-l10 tl">
                                    <img id="img_head_pic" class="pl10" style="width: 40px; height: 40px;" src="{$vo.head_pic|get_default_pic=###}">
                                    <p style="margin-top: 5px;">{$vo.nickname}</p>
                                </div>
                            </td>
                            <td class="">
                                <div class="w150 tc"> {$vo.staff_name} </div>
                            </td>
                            <td class="">
                                <div class="w150 tc"> {$vo.staff_phone} </div>
                            </td>
                            <td class="">
                                <div class="w100 tc">
                                    {eq name="$vo.staff_status" value='1'}
                                    <span class="yes" data-yestext="<i class='fa fa-check-circle'></i>启用" data-notext="<i class='fa fa-ban'></i>禁用" onclick="changeTableVal('weapp_verify_staff', 'staff_id', '{$vo.staff_id}', 'staff_status', this);"> <i class="fa fa-check-circle"></i>启用</span>
                                    {else /}
                                    <span class="no" data-yestext="<i class='fa fa-check-circle'></i>启用" data-notext="<i class='fa fa-ban'></i>禁用" onclick="changeTableVal('weapp_verify_staff', 'staff_id', '{$vo.staff_id}', 'staff_status', this);"> <i class="fa fa-ban"></i>禁用</span>
                                    {/eq}
                                </div>
                            </td>
                            <td class="">
                                <div class="w200 tc"> {$vo.store_name} </div>
                            </td>
                            <td class="">
                                <div class="w150 tc"> {$vo.add_time|MyDate='Y-m-d H:i:s',###} </div>
                            </td>
                            <td class="operation">
                                <div class="w100 tc">
                                    <a href="{:weapp_url('Verify/Verify/verify_staff_edit', ['staff_id'=>$vo['staff_id']])}" class="btn blue">编辑</a>
                                    <i></i>
                                    <a href="javascript:void(0);" data-url="{:weapp_url('Verify/Verify/verify_staff_del')}" data-id="{$vo.staff_id}" onclick="delfun(this);" class="btn red">删除</a>
                                </div>
                            </td>
                        </tr>
                        {/volist}
                    {/empty}
                    </tbody>
                </table>
            </div>
            <div class="iDiv" style="display: none;"></div>
        </div>

        <div class="tDiv">
            <div class="tDiv2">
                <div class="fbutton checkboxall"> <input type="checkbox" class="checkAll"> </div>
                <div class="fbutton">
                    <a href="javascript:void(0);" onclick="batch_del(this, 'ids');" data-url="{:weapp_url('Verify/Verify/verify_staff_del')}">
                        <div class="add"><span>批量删除</span></div>
                    </a>
                </div>
            </div>
            <div style="clear:both"></div>
        </div>
        <!--分页位置-->
        {$pageStr}
    </div>
</div>

<script type="text/javascript">
    $(function() {
        $('input[name*=ids]').click(function() {
            if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
                $('.checkAll').prop('checked', true);
            } else {
                $('.checkAll').prop('checked', false);
            }
        });
        $('input[type=checkbox].checkAll').click(function(){
            $('input[type=checkbox]:not(:disabled)').prop('checked', this.checked);
        });
    });
</script>

{include file="footer.htm" /}